<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <link rel="stylesheet" href="<%=path %>/res/common/bootstrap-3.3.7-dist/css/bootstrap.min.css" />
	
  </head>
  
  <body>
	<table class="table table-striped">
		<tr>
			<th colspan="5" style="text-align: center;">小类列表</th>
		</tr>
		<tr>
			<td>序号</td>
			<td>类名</td>
			<td>所属大类类名</td>
			<td>操作</td>
		</tr>
		<c:forEach var="voo" items="${sessionScope.minTlist}" varStatus="vss">
		<tr>
			<td>
				${vss.index+1}
			</td>
			<td>${voo.minType_name}</td>
			<td>${voo.m_typename}</td>
			<td>
			<a href="<%=path%>/admin/admin/minTypeDeleteAction?mid=${voo.minId}" >删除X</a>
			</td>
		</tr>
		</c:forEach>
		<tr>
			<td colspan='4'>
			当前页数：${page}	&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
			共 ${pageSize } 页	&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
			<c:choose>
				<c:when test="${page ==1}">
					<c:if test="${pageSize != 1}">
					<a href="<%=path%>/admin/admin/minTypeIndexAction?pageChose=nextPage&page=${page}" >下一页</a>
					</c:if>
				</c:when>
				<c:when test="${page == pageSize}">
				<a href="<%=path%>/admin/admin/minTypeIndexAction?pageChose=lastPage&page=${page}" >上一页</a>
				</c:when>
				<c:otherwise>
				<a href="<%=path%>/admin/admin/minTypeIndexAction?pageChose=nextPage&page=${page}" >下一页</a>
				&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
				<a href="<%=path%>/admin/admin/minTypeIndexAction?pageChose=lastPage&page=${page}" >上一页</a>
				</c:otherwise>
			</c:choose>
			</td>
		</tr>
	</table>
  </body>
</html>
